<script setup>
import {ref,onMounted} from "vue"
import axios from "axios"
import animeModel1 from "../../components/animeModel1.vue"
import animeModel2 from "../../components/animeModel2.vue"

const stpgyhgsVideoUrl = ref("")
const fan_name = ref("")
const fan_fm = ref("")

const fan1Url = ref("")
const fan2Url = ref("")
const fan3Url = ref("")
const fan4Url = ref("")
const fan5Url = ref("")
const fan6Url = ref("")
const fan7Url = ref("")
const fan8Url = ref("")
const fan9Url = ref("")
const fan10Url = ref("")
const fan11Url = ref("")
const fan12Url = ref("")

onMounted(()=>{
    document.title = "砂糖苹果童话故事 - 番剧|EvenSO"
})

axios.get("/go1-api/anime/stpgthgs").then(async res=>{
    console.log(res.data[0])
    fan_name.value = res.data[0].name
    fan_fm.value = res.data[0].anime_image
    stpgyhgsVideoUrl.value = await res.data[0].anime_msg[0].fan_player
    fan1Url.value = await res.data[0].anime_msg[0].fan_player
    fan2Url.value = await res.data[0].anime_msg[1].fan_player
}).catch(err=>console.log(err))
</script>

<template>
    <div class="stpgthgsVideoAll">
        <div class="dialogBoxColor"></div>
        <div class="stpgyhgsVideoMasterBox">
            <animeModel1 
                :videoUrl="stpgyhgsVideoUrl"

                :fan1Url="fan1Url"
                :fan2Url="fan2Url"
                :fan3Url="fan3Url"
                :fan4Url="fan4Url"
                :fan5Url="fan5Url"
                :fan6Url="fan6Url"
                :fan7Url="fan7Url"
                :fan8Url="fan8Url"
                :fan9Url="fan9Url"
                :fan10Url="fan10Url"
                :fan11Url="fan11Url"
                :fan12Url="fan12Url"
            />
        </div>
        <!-- <div class="animeMsg">
            <animeModel2 
            :fan_name="fan_name"/>
        </div> -->
        <div class="animeMsg">
            <animeModel2 
            :fan_fm="fan_fm"
            :fan_name="fan_name"/>
        </div>
    </div>
</template>

<style scoped>
.stpgthgsVideoAll{
    position: absolute;
    left: 0;
    top: 0;
    width: 1855px;
    height: 100%;
    /* background-color: red; */
    /* overflow: hidden; */
}
.dialogBoxColor{
    width: 100%;
    height: 6%;
    background: linear-gradient(to right,rgb(255,78,74),rgb(255,181,232));
}
.stpgyhgsVideoMasterBox{
    width: 100%;
    height: 94%;
    /* background-color: red; */
}
.animeMsg{
    width: 100%;
    height: 80%;
    /* background-color: red; */
}

</style>